Utility library
From Cppreference
< cpp
| C++ Standard Library | ||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Utilities library | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
Contents |
[edit] Language support
[edit] Type support (basic types, RTTI, type traits)
[edit] Dynamic memory management
[edit] Error handling
[edit] Initializer lists
| Allows to use initializer list syntax to initialize non Plain-old-data types (class template) | ||
[edit] General utilities
[edit] Program utilities
[edit] Compile time rational arithmetic (C++11 feature)
[edit] Date and time
[edit] Bitset
| implements constant length bit array (class) | |
[edit] Function objects
[edit] Pairs and tuples
| implements binary tuple, i.e. a pair of values (class template) | ||
| implements fixed size container, which holds elements of possibly different types (class template) | ||
| tag type used to select correct function overload for piecewise construction (class) | ||
| an object of type piecewise_construct_t used to disambiguate functions for piecewise construction (constant) | ||
[edit] Swap, forward and move
| swaps the values of two objects (function template) | ||
| forwards a function argument (function template) | ||
| obtains an rvalue reference (function template) | ||
| obtains an rvalue reference if the move constructor does not throw (function template) | ||
| obtains the type of expression in unevaluated context (function template) | ||
[edit] Relational operators
| Defined in namespace std::rel_ops
| ||
| automatically generated operator!= based on user-defined operator== (function template) | |
| automatically generated operator> based on user-defined operator< (function template) | |
| automatically generated operator<= based on user-defined operator< (function template) | |
| automatically generated operator<= based on user-defined operator< (function template) | |
[edit] Hash support
| hash function object (class) | ||